<!-- 新版oa系统登录后首页html -->

<link rel="stylesheet" type="text/css" href="../css/themes/bootstrap/easyui.css">
<div  id="bs-doc-manage">		
		<div class="col-md-12 column">	
			<div class="row clearfix">
				<div class="col-md-4 col-lg-3">
					
					<div class="row  page-header">
						<div class="col-md-6">
							<h4 style="margin-top:0px;">
								文档分类
							</h4>
						</div>							
						
					</div>
					
					<table class="tg-tree easyui-treegrid" 
						data-options="rownumbers:true,
						animate: true,									
						striped:true,
						border:true,
						//singleSelect:false,
						idField: 'id',
						treeField: 'name',					
						fitColumns: true,
						checkOnSelect:true,					
						selectOnCheck:true">
						
						<thead>						
							<tr>							
								<th field="name" width="100" align="left" halign="center">分类名称</th>
															
							</tr>
						</thead>
						
					</table>
						
					
				</div>
				<div class="col-md-8 col-lg-9 column">
					
					<div class="row page-header">
						<div class="col-md-4 col-lg-6">
							<h4 style="margin-top:0px;">
								文档清单
							</h4>
						</div>				
						
						<div class="col-md-8 col-lg-6 btn-container pull-right">
							
						</div>
						
					</div>
					<div class="list-detail">
						<table class="easyui-datagrid dg-list" 
							data-options="rownumbers:true,
							animate: true,									
							striped:true,
							border:true,
							//singleSelect:false,
							idField: 'id',									
							fitColumns: true,
							checkOnSelect:true,
							pagination : true,
							selectOnCheck:true					
							">
							
							<thead>						
								<tr>
									<th field="ck" checkbox="true" ></th>
									<th field="name" width="100" align="left" halign="center">文档标题</th>
									<th field="state_id" width="30" align="center" data-options="{
										formatter:function(value,row,index){
											if(value && value==1){
												return '是'
											}
											return '否';						
										}
									}">是否公开</th>
									<th field="createTime" width="60" align="center">创建时间</th>
									<th field="public_date" width="60" align="center">发布时间</th>
									<th field="public_dept_name" width="60" align="center">发布部门</th>
									<th field="public_user_name" width="60" align="center">发布人</th>			
									<th field="comment" width="30" align="center">备注</th>
									<th field="status" width="30" align="center" data-options="{
										formatter:function(value,row,index){
											if(value){
												switch(value){
													case '0':
													return '<span><font color=blue>已提交</font></span>';
													break;
													case '1':
													return '<span><font color=green>审核通过</font></span>';
													break;
													case '-1':
													return '<span><font color=red>未通过</font></span>';
													break;
												}
											}
											return null;						
										}
									}">审核状态</th>
									
									<th field="arc_num" width="20" align="center" data-options="{
										formatter:function(value,row,index){
											if(value && value>=1){
												return '<span><font color=blue>附件</font></span>';
											}else{
												return null
											}
										}
									}
									">附件</th>
								</tr>
							</thead>
							
						</table>
					</div>
				</div>
			</div>
			
			<div class="row page-footer"></div>
		</div>
</div>
<script>
require(['jquery','bsDocManage','domReady!'],function($,manage,doc){
	manage.initPage();
})
</script>